type IsTuple<T> = T extends []
    ? true
    : T extends readonly [infer _, ...any]
        ? true
        : false